package com.bicycle.rentalsystem.dao.impl.user;

import com.bicycle.rentalsystem.dao.user.RentDao;
import com.bicycle.rentalsystem.jdbc.JdbcUtil;

public class RentDaoImpl implements RentDao {
    @Override
    public int updateStatus(String username,Integer bid) {
        String sql="update bicycle set `holder`=?,`status`='已租赁' where `bid`=?";
        return JdbcUtil.update(sql,username,bid);
    }
}
